package com.atguigu.gmall.cart.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

@FeignClient(name = "service-cart",path = "/api/cart",contextId = "cartFeignClient")
public interface CartFeignClient {

    /**
     * 用户下单成功，清空购物车
     * @return
     */
    @DeleteMapping("/clearCart")
    public Boolean clearCart();

    /**
     * 获取用户购物车相关信息
     * @return
     */
    @GetMapping("/getOrderCartMap")
    public Map getOrderCartMap();
}
